package top.v5it.logback.push.convergence;

/**
 * 不收敛策略，马上推送
 *
 * @author zhanpu
 * @date 2022/9/8
 */
public class NotConvergenceStrategy implements ConvergenceStrategy {

    /**
     * 收到消息马上发送
     *
     * @param payload 消息体
     * @return
     */
    @Override
    public boolean isPush(byte[] payload) {
        return getMsgId(payload).isPresent();
    }
}
